package com.usian.article.controller.v1

import com.usian.article.service.impl.ApCollectionServiceImpl
import com.usian.model.behavior.dtos.CollectionBehaviorDto
import com.usian.model.common.dtos.ResponseResult
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.*

@RestController
@RequestMapping("/api/va/article")
class ApCollectionController {

    @Autowired
    lateinit var apCollectionServiceImpl: ApCollectionServiceImpl

    @PostMapping("/collection")
    fun collection(@RequestBody dto : CollectionBehaviorDto) : ResponseResult<*> = apCollectionServiceImpl.collection(dto)
}